<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <title>Document</title>
</head>

<body>
    <div id="app">
        <p>姓名：<input type="text" v-model="pople.name"></p>
        <p>性别：<input type="radio" v-model="pople.sex" value="男">男 <input type="radio" v-model="pople.sex" value="女">女
        </p>
        <p>爱好：
            <input type="checkbox" v-model="pople.hobby" value="打篮球">打篮球
            <input type="checkbox" v-model="pople.hobby" value="敲代码">敲代码
            <input type="checkbox" v-model="pople.hobby" value="看电影">看电影
            <input type="checkbox" v-model="pople.hobby" value="旅游">旅游
        </p>
        <p>
            <h4>你喜欢的城市</h4>
            <select v-model="pople.likeCity" >
                <option value="武汉">武汉</option>
                <option value="北京">北京</option>
                <option value="上海">上海</option>
                <option value="杭州">杭州</option>
            </select>
        </p>
        <p><textarea placeholder="自我介绍" v-model="pople.msg"></textarea></p>
    </div>
    <script>
        Vue.config.productionTip = false;
        const vm = new Vue({
            data() {
                return {
                    pople: {
                        name: "",
                        sex: "",
                        hobby: [],
                        msg: "",
                        likeCity:""
                    }
                }
            }
        }).$mount("#app")
    </script>
</body>

</html>